<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>密码验证</title>
  <style>
    body {
      color: #000;
      background-color: #fff;
    }

    h2 {
      text-align: center;
    }

    input.invalid {
      background-color: #ff9;
      border: 2px red inset;
    }

    label.invalid {
      color: #f00;
      font-weight: bold;
    }
  </style>
  <script src="index.js"></script>
</head>

<body>
  <h2>密码验证</h2>

  <form action="">
    <p>
      <label>请输入密码: <input class="email" type="text" size="50" /></label>
    </p>
    <p><input type="reset" />&nbsp;<input type="submit" value="提交" /></p>
  </form>
</body>

</html>